//
//  UserInfoModel.m
//  IMChat
//
//  Created by CLSgGhost on 2021/6/28.
//  Copyright © 2021年 TeamOne. All rights reserved.
//

#import "UserInfoModel.h"

@implementation UserInfoModel

- (UserInfoModel *)initWithUserId:(NSString *)userId
                     withUserName:(NSString *)userName
              withUserPortraitUri:(NSString *__nullable)userPortraitUri
                      withUserSex:(NSString *__nullable)userSex{
    
    if(self = [super init]){
        self.userId = userId;
        self.userName = userName;
        self.userPortraitUri = userPortraitUri;
        self.userSex = userSex;
    }
    
    return self;
}

- (UserInfoModel *)initWithUserId:(NSString *)userId
                     withUserName:(NSString *)userName
              withUserPortraitUri:(NSString *)userPortraitUri{
    
    return [self initWithUserId:userId withUserName:userName withUserPortraitUri:userPortraitUri withUserSex:nil];
}

- (UserInfoModel *)initWithUserId:(NSString *)userId
                     withUserName:(NSString *)userName{
    
    return [self initWithUserId:userId withUserName:userName withUserPortraitUri:nil withUserSex:nil];
}

@end
